package com.chinasoft.class5.group4.TrueWord;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class WHHTrueWord implements TrueWord {
    List<String> wordList = new ArrayList<String>();

    public WHHTrueWord() {
        wordList.add("你好！");
        wordList.add("你好。");
        wordList.add("你好？");
    }

    @Override
    public String getWord() {
        Random random = new Random();
        int index = random.nextInt(wordList.size());
        return this.wordList.get(index);
    }

    @Override
    public String getName() {
        return "王鸿辉";
    }
}
